/*  SSEBTrackingCell.h
 *  MESLib
 * 
 * Copyright 2003-2009 Starline Software Ltd
 * 
 * This file is part of MESLib.
 * 
 * MESLib is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * MESLib is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with MESLib. If not, see <http://www.gnu.org/licenses/>.
 */
//  Created by Tobias Haughton on Tue Feb 11 2003.
//

#import <Cocoa/Cocoa.h>
#import "SSEventObject.h"
#import "SSConst.h"

@interface SSEBTrackingCell : NSTextFieldCell {
   NSRect cellFrame;
   SSEventObject *trackedEvent;
   NSBezierPath *verticalLine;
   BOOL isDrawingEllipse;
   BOOL shouldDrawEllipse;
}

- (id)initWithTrackedEvent:(SSEventObject *)tracked;

- (void)drawInView:(id)view;
- (void)drawInView:(id)view withOffset:(float)offset;

- (NSRect)cellFrame;

- (void)setCellFrameWithOrigin:(NSPoint)point;
- (void)updateCellFrameXPos;
- (void)setCellFrameXPos:(float)num;

- (SSEventObject *)trackedEvent;
- (void)setTrackedEvent:(SSEventObject *)tracked;

- (NSComparisonResult)compareDateToTrackingCell:(SSEBTrackingCell *)trackingCell;
- (NSComparisonResult)compareXPosToTrackingCell:(SSEBTrackingCell *)trackingCell;

- (void)updateAfterBeginDateChange;
- (void)updateDisplayString;

- (void)shouldDisplayInRed:(BOOL)b;
- (void)shouldDrawEllipse:(BOOL)b;

@end
